package com.FundamentalDemos.Operator;

public class 条件运算符_三元运算符 {
    public static void main(String[] args) {
        double score = 98.5;
        System.out.println(score >= 60 ? "成绩及格" : "不及格");
        score = 56;
        System.out.println(score >= 60 ? "成绩及格" : "不及格");

        int a = 99, b = 50;
        System.out.println(a > b ? a : b);
        b = 167;
        System.out.println(a > b ? a : b);
        b = 99;
        System.out.println(a > b ? a : b);

    }
}
